/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_framework/zhiqim_orm.htm
 *
 * Zhiqim ORM is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.orm.test.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 测试字符串 对应表《T_STRING》
 */
@AnAlias("TString")
@AnNew
@AnTable(table="T_STRING", key="T_ID", type="InnoDB")
public class TString implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="T_ID", type="long", notNull=true)    private long tId;    //1.测试编号
    @AnTableField(column="T_CHAR", type="string,19,char", notNull=false)    private String tChar;    //2.定长字符串
    @AnTableField(column="T_VARCHAR", type="string,32", notNull=false)    private String tVarchar;    //3.变长字符串
    @AnTableField(column="T_STRING2000", type="string,2000", notNull=false)    private String tString2000;    //4.变成2000长度
    @AnTableField(column="T_STRING4000", type="string,4000", notNull=false)    private String tString4000;    //5.变长4000长度
    @AnTableField(column="T_STRING8000", type="string,8000", notNull=false)    private String tString8000;    //6.变长8000长度
    @AnTableField(column="T_STRING16000", type="string,16000", notNull=false)    private String tString16000;    //7.变长16000长度

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long tId()
    {
        return tId;
    }

    public TString tId(long tId)
    {
        this.tId = tId;
        return this;
    }

    public String tChar()
    {
        return tChar;
    }

    public TString tChar(String tChar)
    {
        this.tChar = tChar;
        return this;
    }

    public String tVarchar()
    {
        return tVarchar;
    }

    public TString tVarchar(String tVarchar)
    {
        this.tVarchar = tVarchar;
        return this;
    }

    public String tString2000()
    {
        return tString2000;
    }

    public TString tString2000(String tString2000)
    {
        this.tString2000 = tString2000;
        return this;
    }

    public String tString4000()
    {
        return tString4000;
    }

    public TString tString4000(String tString4000)
    {
        this.tString4000 = tString4000;
        return this;
    }

    public String tString8000()
    {
        return tString8000;
    }

    public TString tString8000(String tString8000)
    {
        this.tString8000 = tString8000;
        return this;
    }

    public String tString16000()
    {
        return tString16000;
    }

    public TString tString16000(String tString16000)
    {
        this.tString16000 = tString16000;
        return this;
    }
}
